import request from '@/utils/request'

// 查询资金记录信息列表
export function listCapitalRecord(query) {
  return request({
    url: '/capitalRecord/list',
    method: 'get',
    params: query
  })
}

// 查询资金记录信息详细
export function getCapitalRecord(recordId) {
  return request({
    url: '/capitalRecord/' + recordId,
    method: 'get'
  })
}

// 新增资金记录信息
export function addCapitalRecord(data) {
  return request({
    url: '/capitalRecord',
    method: 'post',
    data: data
  })
}

// 修改资金记录信息
export function updateCapitalRecord(data) {
  return request({
    url: '/capitalRecord',
    method: 'put',
    data: data
  })
}

// 删除资金记录信息
export function delCapitalRecord(recordId) {
  return request({
    url: '/capitalRecord/' + recordId,
    method: 'delete'
  })
}
